﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CommunitySystemModel
{
    public class ZL_MianShiEmpPiPeiModel
    {
        private int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _ZhaoLu_DaoRuKaoShengID;
        [DataMember]
        public int ZhaoLu_DaoRuKaoShengID
        {
            get { return _ZhaoLu_DaoRuKaoShengID; }
            set { _ZhaoLu_DaoRuKaoShengID = value; }
        }
        private int _ZhaoLuZhiWeiID;
        [DataMember]
        public int ZhaoLuZhiWeiID
        {
            get { return _ZhaoLuZhiWeiID; }
            set { _ZhaoLuZhiWeiID = value; }
        }

        private int _ZL_ZhiWeiShiJianAnPaiID;
        [DataMember]
        public int ZL_ZhiWeiShiJianAnPaiID
        {
            get { return _ZL_ZhiWeiShiJianAnPaiID; }
            set { _ZL_ZhiWeiShiJianAnPaiID = value; }
        }

        public static ZL_MianShiEmpPiPeiModel FillEntity(DataRow dr)
        {
            ZL_MianShiEmpPiPeiModel right = new ZL_MianShiEmpPiPeiModel();
            if (dr.Table != null && dr.Table.Columns.Contains("ID")) right.ID = Convert.ToInt32(dr["ID"]);
            if (dr.Table != null && dr.Table.Columns.Contains("ZhaoLu_DaoRuKaoShengID")) right.ZhaoLu_DaoRuKaoShengID = Convert.ToInt32(dr["ZhaoLu_DaoRuKaoShengID"]);
            if (dr.Table != null && dr.Table.Columns.Contains("ZhaoLuZhiWeiID")) right.ZhaoLuZhiWeiID = Convert.ToInt32(dr["ZhaoLuZhiWeiID"]);
            if (dr.Table != null && dr.Table.Columns.Contains("ZL_ZhiWeiShiJianAnPaiID")) right.ZL_ZhiWeiShiJianAnPaiID = Convert.ToInt32(dr["ZL_ZhiWeiShiJianAnPaiID"]);
            return right;
        }
    }
}
